home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 75
/
PCMania CD75_1.iso
/
lycos
/
netscape
/
nav40l.z
/
resdll.dll
/
RCDATA
/
SECPREFS
< prev
next >
Wrap
Text File
|
1997-12-16
|
37KB
|
1,093 lines
function sa_init_array()
{
var num_args = sa_init_array.arguments.length;
var a = new Array(num_args);
for ( var i = 0; i < num_args; i++ ) {
a[i] = sa_init_array.arguments[i];
}
return a;
}
function sa_init_sorted_array()
{
var num_args = sa_init_sorted_array.arguments.length;
var a = new Array(num_args);
for ( var i = 0; i < num_args; i++ ) {
a[i] = sa_init_sorted_array.arguments[i];
}
a.sort();
return a;
}
</SCRIPT>
<SCRIPT>
function sa_open_form(form_name)
{
return '<FORM ACTION="internal-dialog-handler" METHOD=POST NAME="' +
form_name + '">' +
'<INPUT TYPE=HIDDEN NAME=handle VALUE="' + sa_handle + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_current_page VALUE="' + sa_curpage + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_ssl_cert VALUE="' +
sa_selected_ssl_cert + '">'+
'<INPUT TYPE=HIDDEN NAME=submit_proxy_cert VALUE="' +
sa_selected_proxy_cert + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_mail_cert VALUE="' +
sa_selected_mail_cert + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_enter VALUE="' +
sa_warn_enter_secure + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_leave VALUE="' +
sa_warn_leave_secure + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_mixed VALUE="' + sa_warn_mixed + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_send VALUE="' + sa_warn_send_clear + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_ssl2 VALUE="' + sa_enable_ssl2 + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_ssl3 VALUE="' + sa_enable_ssl3 + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_password_ask_type VALUE="' +
sa_password_ask_type + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_password_ask_interval VALUE="' +
sa_password_ask_interval + '">' +
'<INPUT TYPE=HIDDEN NAME=submit_encrypt_always VALUE="' +
sa_encrypt_always +'">' +
'<INPUT TYPE=HIDDEN NAME=submit_sign_mail_always VALUE="' +
sa_sign_mail_always +'">' +
'<INPUT TYPE=HIDDEN NAME=submit_sign_news_always VALUE="' +
sa_sign_news_always +'">' +
'<INPUT TYPE=HIDDEN NAME=submit_encrypt_this VALUE="' +
sa_encrypt_this +'">' +
'<INPUT TYPE=HIDDEN NAME=submit_sign_this VALUE="' + sa_sign_this +'">'
}
function sa_close_form()
{
return "</FORM>";
}
function sa_save_form_secinfo_status(win)
{
with (win.document) {
if (forms.secinfo_form) {
if (forms.secinfo_form.encrypt_this_checkbox)
sa_encrypt_this = forms.secinfo_form.encrypt_this_checkbox.checked;
if (forms.secinfo_form.sign_this_checkbox)
sa_sign_this = forms.secinfo_form.sign_this_checkbox.checked;
}
}
}
function sa_save_form_navigator_status(win)
{
with ( win.document ) {
sa_warn_enter_secure = forms.navigator_form.enter_secure.checked;
sa_warn_leave_secure = forms.navigator_form.leave_secure.checked;
sa_warn_mixed = forms.navigator_form.enter_mixed.checked;
sa_warn_send_clear = forms.navigator_form.send_clear.checked;
sa_enable_ssl2 = forms.navigator_form.enable_ssl2.checked;
sa_enable_ssl3 = forms.navigator_form.enable_ssl3.checked;
if ( forms.navigator_form.site_cert.selectedIndex == 0 ) {
sa_selected_ssl_cert = sa_ask_sa_every_time_label;
} else if ( forms.navigator_form.site_cert.selectedIndex == 1 ) {
sa_selected_ssl_cert = sa_select_auto_label;
} else {
sa_selected_ssl_cert =
sa_your_ssl_certs[forms.navigator_form.site_cert.selectedIndex - 2];
}
if ( sa_fortezza_installed ) {
if ( forms.navigator_form.proxy_cert.selecedIndex == 1) {
sa_selected_proxy_cert = sa_no_proxy_auth_label;
} else {
sa_selected_proxy_cert =
sa_your_proxy_certs[forms.navigator_form.proxy_cert.selectedIndex - 1];
}
}
}
}
function sa_save_form_messenger_status(win)
{
with ( win.document ) {
sa_encrypt_always = forms.messenger_form.enable_encrypt_always.checked;
sa_sign_mail_always = forms.messenger_form.enable_sign_mail_always.checked;
sa_sign_news_always = forms.messenger_form.enable_sign_news_always.checked;
if (forms.messenger_form.mail_cert) {
sa_selected_mail_cert =
sa_your_mail_certs[forms.messenger_form.mail_cert.selectedIndex];
} else {
sa_selected_mail_cert = "";
}
}
}
function sa_save_form_passwords_status(win)
{
with ( win.document ) {
nradio = forms.passwords_form.password_ask.length;
for ( var i = 0; i < nradio; i++ ) {
if ( forms.passwords_form.password_ask[i].checked ) {
sa_password_ask_type = i;
}
}
sa_password_ask_interval = forms.passwords_form.password_interval.value;
}
}
function sa_save_pane(win, pane)
{
if ( pane == 'secinfo' ) { sa_save_form_secinfo_status(win); }
else if ( pane == 'passwords' ) { sa_save_form_passwords_status(win); }
else if ( pane == 'navigator' ) { sa_save_form_navigator_status(win); }
else if ( pane == 'messenger' ) { sa_save_form_messenger_status(win); }
}
function sa_switch_pane(top_window, old_pane, new_pane)
{
sa_save_pane(top_window.frames.content, old_pane);
sa_make_dialog(top_window, new_pane);
}
function sa_prepare_form(form_arg)
{
with(form_arg) {
submit_ssl_cert.value = sa_selected_ssl_cert;
submit_proxy_cert.value = sa_selected_proxy_cert;
submit_mail_cert.value = sa_selected_mail_cert;
submit_enter.value = sa_warn_enter_secure;
submit_leave.value = sa_warn_leave_secure;
submit_mixed.value = sa_warn_mixed;
submit_send.value = sa_warn_send_clear;
submit_ssl2.value = sa_enable_ssl2;
submit_ssl3.value = sa_enable_ssl3;
submit_password_ask_type.value = sa_password_ask_type;
submit_password_ask_interval.value = sa_password_ask_interval;
submit_encrypt_always.value = sa_encrypt_always;
submit_sign_mail_always.value = sa_sign_mail_always;
submit_sign_news_always.value = sa_sign_news_always;
submit_encrypt_this.value = sa_encrypt_this;
submit_sign_this.value = sa_sign_this;
}
}
function sa_ready_submit(top_window, cur_pane)
{
sa_save_pane(top_window.frames.content, cur_pane);
sa_prepare_form(top_window.frames.content.document.forms[0]);
sa_prepare_form(top_window.frames.buttons.document.forms[0]);
return false;
}
function sa_make_buttons()
{
var n_buttons = sa_make_buttons.arguments.length;
var button_label;
var ret_string = "";
ret_string += '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>';
for ( var i = 0; i < n_buttons; i++ ) {
button_label = sa_make_buttons.arguments[i];
ret_string += '<TR><TD WIDTH=10></TD><TD VALIGN=TOP>';
ret_string += ('<INPUT TYPE=SUBMIT NAME=button VALUE="'
+ button_label + '">');
ret_string += '</TD>';
}
ret_string += '</TABLE>';
return(ret_string);
}
function sa_make_checkboxes()
{
var nboxes = ( sa_make_checkboxes.arguments.length / 3 );
var box_name;
var box_label;
var box_checked;
var ret_string = "";
ret_string += '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>';
for ( var i = 0; i < nboxes; i++ ) {
box_name = sa_make_checkboxes.arguments[i*3];
box_label = sa_make_checkboxes.arguments[i*3+1];
box_checked = sa_make_checkboxes.arguments[i*3+2];
ret_string += '<TR><TD WIDTH=20></TD><TD VALIGN=TOP>';
ret_string += ('<INPUT TYPE=CHECKBOX NAME="' + box_name + '"' +
( box_checked ? ' CHECKED' : '' ) + '>');
ret_string += '</TD><TD WIDTH=10></TD><TD VALIGN=MIDDLE>';
ret_string += box_label;
ret_string += '</TD></TR>';
}
ret_string += '</TABLE>';
return(ret_string);
}
function sa_make_radio_buttons(radio_name, checked)
{
var n_buttons = ( ( sa_make_radio_buttons.arguments.length - 2 ) / 2 );
var submit_value;
var radio_label;
var ret_string = "";
for ( var i = 0; i < n_buttons; i++ ) {
submit_value = sa_make_radio_buttons.arguments[i*2+2];
radio_label = sa_make_radio_buttons.arguments[i*2+3];
if ( i != 0 ) {
ret_string += '<BR>';
}
ret_string += ('<INPUT TYPE=RADIO NAME="' + radio_name + '"' +
( i == checked ? ' CHECKED' : '' ) +
' VALUE="' + submit_value +
'">' + radio_label);
}
return(ret_string);
}
function sa_make_menu(menu_name, menu_label, selected)
{
var nitems = ( sa_make_menu.arguments.length ) - 3;
var item;
var count = 0;
var ret_string = "";
ret_string += '<TABLE><TR>';
if (typeof(menu_label) == 'string') {
ret_string += '<TD VALIGN=TOP>' + menu_label;
} else {
ret_string += '<TD WIDTH=35>';
}
ret_string += '</TD><TD VALIGN=TOP><SELECT NAME="' + menu_name + '">';
for ( var i = 0; i < nitems; i++ ) {
item = sa_make_menu.arguments[i+3];
if ( typeof(item) == 'string' ) {
ret_string += ('<OPTION' +
( ( item == selected ) ? ' SELECTED>' : '>' ) +
item);
count++;
} else { /* its an array */
for ( var j = 0; j < item.length; j++ ) {
ret_string += ('<OPTION' +
( ( item[j] == selected ) ? ' SELECTED>' : '>' ) +
item[j]);
count++;
}
}
}
ret_string += '</SELECT></TD></TR></TABLE>';
return(ret_string);
}
function sa_make_page_intro(title, bgcolor)
{
var style = '<STYLE TYPE="text/css">BODY{' +
'font-family: Geneva,MS Sans Serif,Arial,Lucida,Helvetica,sans-serif;' +
'font-size: 10pt;' +
'}' +
'TD{' +
'font-family: Geneva,MS Sans Serif,Arial,Lucida,Helvetica,sans-serif;' +
'font-size: 10pt;}' +
'</STYLE>';
if (bgcolor == null) { bgcolor = "#C0C0C0"; }
return '<HTML><HEAD>' +
'<TITLE>' + title + '</TITLE>' +
'</HEAD>' +
'<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#FF0000" ' +
'BGCOLOR="' + bgcolor + '">';
}
function sa_make_secinfo_page()
{
if (sa_info_context == 1) { return sa_make_secinfo_compose_page(); }
else if (sa_info_context == 2) { return sa_make_secinfo_message_page(false);}
else if (sa_info_context == 3) { return sa_make_secinfo_message_page(true); }
else if (sa_info_context == 4) { return sa_make_secinfo_message_page(true); }
else if (sa_info_context == 5) { return sa_make_secinfo_nav_page(); }
else if (sa_info_context == 7) { return sa_make_secinfo_thread_page(true); }
else {
var ret_string = '';
ret_string += sa_make_page_intro(sa_secinfo_index_label, null);
ret_string += sa_open_form('secinfo_form');
ret_string += "<TABLE BORDER=0 HEIGHT=99%><TR VALIGN=CENTER>" +
"<TD ALIGN=CENTER>";
ret_string += sa_not_me_subtitle;
ret_string += "</TD></TR><TR><TD VALIGN=TOP ALIGN=LEFT>" +
sa_not_me_desc_1 + sa_not_me_desc_2;
ret_string += "</TD></TR></TABLE>";
ret_string += sa_close_form();
return ret_string;
}
}
function sa_make_secinfo_compose_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_secinfo_index_label, null);
ret_string += sa_open_form('secinfo_form');
var etitle_string = "<B><FONT SIZE=+1>" + sa_compose_encrypt_subtitle
+ "</FONT></B><P>";
var stitle_string = "<B><FONT SIZE=+1>" + sa_compose_sign_subtitle
+ "</FONT></B><P>";
ret_string += "<TABLE BORDER HEIGHT=100% VALIGN=TOP CELLPADDING=0>" +
"<TR VALIGN=TOP><TD HEIGHT=200>";
if (sa_encrypt_errors.length == 1 && sa_encrypt_errors[0] == 0) {
ret_string += "<IMG SRC=internal-sa-encrypted ALIGN=RIGHT>" +
etitle_string;
ret_string += sa_can_encrypt + "<P>";
ret_string += sa_make_checkboxes('encrypt_this_checkbox',
sa_encrypt_this_checkbox_label,
sa_encrypt_this)
+ "<P>";
ret_string += sa_send_encrypt_desc;
} else {
ret_string += "<IMG SRC=internal-sa-nonencrypted ALIGN=RIGHT>" +
etitle_string;
ret_string += sa_cannot_encrypt_head + "<BR>";
if (sa_encrypt_errors[0] == 1) {
ret_string += "<BR>" + sa_no_recipients_desc + "<BR>";
} else {
ret_string += "<TABLE WIDTH='100%'><TR><TD VALIGN=TOP>"
+ "<SELECT SIZE=4 NAME=errors>";
for ( var i = 0; i < sa_dest_names.length; i++ ) {
ret_string += ("<OPTION>" + sa_dest_names[i]);
if (sa_encrypt_errors[i] == 2) {
ret_string += sa_cert_missing_tail;
} else if (sa_encrypt_errors[i] == 3) {
ret_string += sa_cert_has_exp_tail;
} else if (sa_encrypt_errors[i] == 4) {
ret_string += sa_cert_has_revoke_tail;
} else if (sa_encrypt_errors[i] == 5) {
ret_string += sa_cert_no_alias_tail;
} else if (sa_encrypt_errors[i] == 6) {
ret_string += sa_cert_newsgroup_tail;
} else if (sa_encrypt_errors[i] == 7) {
ret_string += sa_cert_invalid_tail;
} else if (sa_encrypt_errors[i] == 8) {
ret_string += sa_cert_untrusted_tail;
} else if (sa_encrypt_errors[i] == 9) {
ret_string += sa_cert_issuer_untrusted_tail;
} else if (sa_encrypt_errors[i] == 10) {
ret_string += sa_cert_issuer_unknown_tail;
} else {
ret_string += sa_cert_unknown_error_tail;
}
}
ret_string += "</SELECT></TD><TD>" +
"<INPUT TYPE=SUBMIT NAME=button VALUE=\"" +
sa_get_certs_button_label + '">' +
"</TD></TR></TABLE>" +
sa_how_to_get_their_cert_1 +
sa_how_to_get_their_cert_2;
}
}
ret_string += "</TD></TR><TR VALIGN=TOP><TD>";
if (sa_sign_error == 0) {
ret_string += "<IMG SRC=internal-sa-signed ALIGN=RIGHT>" + stitle_string;
ret_string += sa_can_be_signed + "<P>";
ret_string += sa_make_checkboxes('sign_this_checkbox',
sa_sign_this_checkbox_label,
sa_sign_this)
+ "<BR>";
ret_string += sa_can_sign_desc + "<P>" + sa_sign_disclaimer;
} else if (sa_sign_error == 1) {
ret_string += "<IMG SRC=internal-sa-signed-bad ALIGN=RIGHT>" +
stitle_string;
ret_string += sa_cannot_be_signed + "<P>";
ret_string += sa_cannot_sign_desc_1 + sa_cannot_sign_desc_2;
ret_string += "<P>" + sa_sign_disclaimer + "<BR>";
ret_string += "<BR><INPUT TYPE=SUBMIT NAME=button VALUE=\"" +
sa_get_cert_button_label + '">';
}
ret_string += "</TD></TR></TABLE>";
ret_string += sa_close_form();
return ret_string;
}
</SCRIPT><SCRIPT>
function sa_make_secinfo_message_page(news_p)
{
var etitle_string;
var stitle_string;
var ret_string = '';
ret_string += sa_make_page_intro(sa_secinfo_index_label, null);
ret_string += sa_open_form('secinfo_form');
etitle_string = "<B><FONT SIZE=+1>" +
(news_p ? sa_news_encrypt_subtitle : sa_message_encrypt_subtitle) +
"</FONT></B><P>";
stitle_string = "<B><FONT SIZE=+1>" +
sa_message_sign_subtitle +
"</FONT></B><P>";
if (sa_encrypt_errors[0] == 0) {
ret_string += "<IMG SRC=internal-sa-encrypted ALIGN=RIGHT>" +
etitle_string +
(news_p ? (sa_news_encrypted_1 + sa_news_encrypted_2)
: sa_was_encrypted);
} else if (sa_encrypt_errors[0] == 1) {
sa_encryption_algorithm = "";
ret_string += "<IMG SRC=internal-sa-nonencrypted ALIGN=RIGHT>" +
etitle_string +
(news_p ? sa_news_not_encrypted : sa_was_not_encrypted);
} else if (sa_encrypt_errors[0] == 2) {
ret_string += "<IMG SRC=internal-sa-encrypted-bad ALIGN=RIGHT>" +
etitle_string +
sa_was_encrypted_for_other_1 + sa_was_encrypted_for_other_2;
} else {
ret_string += "<IMG SRC=internal-sa-encrypted-bad ALIGN=RIGHT>" +
etitle_string + "<P>" + sa_encryption_invalid + sa_encrypt_error_str;
}
if (sa_encryption_algorithm != "") {
ret_string += "<P>" +
sa_encryption_algorithm_was + sa_encryption_algorithm + ".";
}
ret_string += "<P><HR><P>";
ret_string += "<IMG SRC=" +
((sa_sign_error == 0) ? "internal-sa-signed" : "internal-sa-signed-bad") +
" ALIGN=RIGHT>" + stitle_string;
if (sa_sign_error == 0) {
ret_string += sa_was_signed_head + "<B>" + sa_signer_name + "</B>";
if (sa_signing_time) {
ret_string += sa_was_signed_at + sa_signing_time;
}
ret_string += ".<P> ";
} else if (sa_sign_error == 1) {
ret_string += sa_was_not_signed;
} else if (sa_sign_error == 3) {
ret_string += sa_sig_tampered_1 + sa_sig_tampered_2;
} else if (sa_sign_error == 4) {
ret_string += sa_addr_mismatch_part1 + sa_sender_addr;
ret_string += sa_addr_mismatch_part2 + sa_signer_addr;
ret_string += sa_addr_mismatch_part3;
} else {
ret_string += sa_sig_invalid;
ret_string += "<P>" + sa_sign_error_intro;
ret_string += sa_sign_error_str;
}
if (sa_sign_error != 0 && sa_sign_error != 1) {
ret_string += "<P>" + sa_included_cert_desc_head + "<B>" +
sa_signer_name + "</B>";
if (sa_signing_time) {
ret_string += sa_included_cert_desc_signed_at + sa_signing_time;
}
ret_string += ". ";
}
if (sa_sign_error != 1) {
ret_string += sa_was_signed_desc_tail_1 + sa_was_signed_desc_tail_2;
ret_string += "<P>" + sa_make_buttons(sa_view_button_label);
}
ret_string += sa_close_form();
return ret_string;
}
function sa_make_secinfo_thread_page(news_p)
{
var etitle_string;
var ret_string = '';
ret_string += sa_make_page_intro(sa_secinfo_index_label, null);
ret_string += sa_open_form('secinfo_form');
etitle_string = "<B><FONT SIZE=+1>" +
(news_p ? sa_news_encrypt_subtitle : sa_message_encrypt_subtitle) +
"</FONT></B><P>";
if (sa_nav_info_encrypted == true) {
ret_string += "<IMG SRC=internal-sa-encrypted ALIGN=RIGHT>";
} else {
ret_string += "<IMG SRC=internal-sa-nonencrypted ALIGN=RIGHT>";
}
ret_string += etitle_string;
if (sa_nav_info_encrypted == true) {
ret_string += (news_p ? (sa_news_encrypted_1 + sa_news_encrypted_2) : '');
} else {
sa_encryption_algorithm = "";
ret_string += (news_p ? sa_news_not_encrypted : '');
}
ret_string += sa_close_form();
return ret_string;
}
function sa_make_nav_no_encrypt_info()
{
var ret_string = '';
ret_string += sa_nav_no_encrypt_desc_1;
ret_string += sa_nav_no_encrypt_desc_2;
ret_string += "<P>";
return ret_string;
}
function sa_make_nav_encrypt_info()
{
var ret_string = '';
ret_string += sa_nav_encrypt_desc_1;
ret_string += sa_nav_encrypt_desc_2;
ret_string += sa_nav_encrypt_desc_3;
ret_string += "<P><INPUT TYPE=SUBMIT NAME=button VALUE=\"" +
sa_view_cert_button_label + '">';
return ret_string;
}
function sa_make_nav_no_encrypt_mix_info()
{
var ret_string = '';
ret_string += sa_nav_no_encrypt_mix_desc_1;
ret_string += sa_nav_no_encrypt_mix_desc_2;
ret_string += sa_nav_no_encrypt_mix_desc_3;
ret_string += "<P>";
return ret_string;
}
function sa_make_nav_encrypt_mix_info()
{
var ret_string = '';
ret_string += sa_nav_encrypt_mix_desc_1;
ret_string += sa_nav_encrypt_mix_desc_2;
ret_string += sa_nav_encrypt_mix_desc_3;
ret_string += sa_nav_encrypt_mix_desc_4;
ret_string += sa_nav_encrypt_mix_desc_5;
ret_string += "<P><INPUT TYPE=SUBMIT NAME=button VALUE=\"" +
sa_view_cert_button_label + '">';
return ret_string;
}
function sa_make_nav_verify_info()
{
var ret_string = '';
var last;
if (sa_nav_info_site_name == "")
return '';
ret_string+= "<P><HR><P>";
ret_string += "<B><FONT SIZE=+1>" + sa_nav_verification_subtitle +
"</FONT></B><P>";
ret_string += "<UL>";
if (sa_nav_info_encrypted) {
ret_string += "<LI>" + sa_nav_verify_cert_desc;
}
ret_string += "<LI>" + sa_nav_verify_domain_desc + sa_nav_info_site_name;
if (sa_nav_info_chrome_missing) {
if (sa_nav_info_missing_status) {
last = 4;
} else if (sa_nav_info_missing_location) {
last = 3;
} else if (sa_nav_info_missing_personalbar) {
last = 2;
} else if (sa_nav_info_missing_toolbar) {
last = 1;
} else {
last = 0;
}
ret_string += "<LI>" + sa_nav_verify_missing_desc_1;
if (sa_nav_info_missing_menubar) {
ret_string += sa_nav_info_menubar_name;
if (last != 0) {
ret_string += ", ";
}
}
if (sa_nav_info_missing_toolbar) {
ret_string += sa_nav_info_toolbar_name;
if (last != 1) {
ret_string += ", ";
}
}
if (sa_nav_info_missing_personalbar) {
ret_string += sa_nav_info_personalbar_name;
if (last != 2) {
ret_string += ", ";
}
}
if (sa_nav_info_missing_location) {
ret_string += sa_nav_info_location_name;
if (last != 3) {
ret_string += ", ";
}
}
if (sa_nav_info_missing_status) {
ret_string += sa_nav_info_status_name;
}
ret_string += sa_nav_verify_missing_desc_2;
}
if (sa_nav_info_java) {
ret_string += "<LI>" + sa_nav_verify_java_desc_1;
ret_string += sa_nav_info_creator_name;
ret_string += sa_nav_verify_java_desc_2;
} else if (sa_nav_info_js) {
ret_string += "<LI>" + sa_nav_verify_js_desc_1;
ret_string += sa_nav_info_creator_name;
ret_string += sa_nav_verify_js_desc_2;
}
ret_string += "</UL>";
return ret_string;
}
function sa_make_secinfo_nav_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_secinfo_index_label, null);
ret_string += sa_open_form('secinfo_form');
if (sa_nav_info_encrypted) {
ret_string += "<IMG SRC=internal-sa-encrypted ALIGN=RIGHT>";
} else {
ret_string += "<IMG SRC=internal-sa-nonencrypted ALIGN=RIGHT>";
}
ret_string += "<B><FONT SIZE=+1>" + sa_nav_encryption_subtitle +
"</FONT></B><P>";
if (sa_nav_info_encrypted) {
if (sa_nav_info_mixed) {
ret_string += sa_make_nav_encrypt_mix_info();
} else {
ret_string += sa_make_nav_encrypt_info();
}
} else {
if (sa_nav_info_mixed) {
ret_string += sa_make_nav_no_encrypt_mix_info();
} else {
ret_string += sa_make_nav_no_encrypt_info();
}
}
ret_string += "<INPUT TYPE=SUBMIT NAME=button VALUE=\"" +
sa_page_info_label + "\">";
ret_string += sa_make_nav_verify_info();
ret_string += sa_close_form();
return ret_string;
}
function sa_make_passwords_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_passwords_index_label, null);
ret_string += sa_open_form('passwords_form');
ret_string += sa_password_desc_1 + sa_password_desc_2;
if ( sa_password_set ) {
ret_string += sa_make_buttons(sa_change_password_label);
} else {
ret_string += sa_make_buttons(sa_set_password_label);
}
ret_string += '<P>';
ret_string += sa_ask_for_password_label;
ret_string += '<UL>';
ret_string += sa_make_radio_buttons('password_ask', sa_password_ask_type,
'once', sa_once_per_session_label,
'every', sa_every_time_label,
'timeout', sa_after_label);
ret_string += ("<INPUT TYPE=INT SIZE=4 NAME=password_interval VALUE=\"" +
sa_password_ask_interval + "\">");
ret_string += sa_minutes_label;
ret_string += '</UL>';
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_navigator_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_navigator_index_label, null);
ret_string += sa_open_form('navigator_form') + sa_ssl_desc;
ret_string += sa_make_checkboxes('enter_secure',
sa_enter_secure_label,
sa_warn_enter_secure,
'leave_secure',
sa_leave_secure_label,
sa_warn_leave_secure,
'enter_mixed',
sa_mixed_secure_label,
sa_warn_mixed,
'send_clear',
sa_send_clear_label,
sa_warn_send_clear);
ret_string += '<P>' + sa_ssl_cert_label + "<BR>";
ret_string += sa_make_menu('site_cert', null, sa_selected_ssl_cert,
sa_ask_sa_every_time_label, sa_select_auto_label,
sa_your_ssl_certs);
if (sa_fortezza_installed) {
ret_string += "<P>" + sa_proxy_cert_label + "<BR>";
ret_string += sa_make_menu('proxy_cert', null, sa_selected_proxy_cert,
sa_no_proxy_auth_label, sa_your_proxy_certs);
}
ret_string += "<P>";
ret_string += sa_ssl_config_label;
ret_string += "<P>";
ret_string += "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>";
ret_string += "<TR><TD ALIGN=LEFT VALIGN=MIDDLE>";
ret_string += sa_make_checkboxes('enable_ssl2',
sa_ssl2_enable_label,
sa_enable_ssl2);
ret_string += "</TD><TD ALIGN=LEFT VALIGN=MIDDLE>"
ret_string += sa_make_buttons(sa_ssl2_config_label);
ret_string += "</TD></TR><TD ALIGN=LEFT VALIGN=MIDDLE>"
ret_string += sa_make_checkboxes('enable_ssl3',
sa_ssl3_enable_label,
sa_enable_ssl3);
ret_string += "</TD><TD ALIGN=LEFT VALIGN=MIDDLE>"
ret_string += sa_make_buttons(sa_ssl3_config_label);
ret_string += "</TD></TR></TABLE>"
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_messenger_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_messenger_index_label, null);
ret_string += sa_open_form('messenger_form');
ret_string += sa_smime_desc + "<BR>";
ret_string += "<BR>" + sa_smime_pref_desc + "<BR>";
ret_string += sa_make_checkboxes('enable_encrypt_always',
sa_encrypt_always_checkbox_label,
sa_encrypt_always,
'enable_sign_mail_always',
sa_sign_mail_always_checkbox_label,
sa_sign_mail_always,
'enable_sign_news_always',
sa_sign_news_always_checkbox_label,
sa_sign_news_always);
ret_string += '<P>' + sa_smime_cert_label + "<BR>";
if (sa_your_mail_certs.length == 0)
{
ret_string += "<UL>" + sa_smime_no_certs_blurb + "</UL>";
ret_string += sa_smime_no_cert_desc_1 + sa_smime_no_cert_desc_2;
}
else
{
ret_string += sa_make_menu('mail_cert', null,
sa_selected_mail_cert, sa_your_mail_certs);
ret_string += sa_smime_cert_desc;
ret_string += sa_smime_send_cert_desc;
ret_string += "<P>" + sa_make_buttons(sa_send_cert_button_label);
}
ret_string += "<P>";
ret_string += sa_smime_cipher_heading;
ret_string += "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><TR>";
ret_string += "<TD WIDTH=35></TD><TD VALIGN=MIDDLE>";
ret_string += sa_smime_cipher_desc;
ret_string += "</TD><TD VALIGN=MIDDLE>";
ret_string += sa_make_buttons(sa_smime_config_label);
ret_string += "</TD></TR></TABLE>";
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_applets_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_applets_index_label, null);
ret_string += sa_open_form('applets_form') +
sa_applets_desc_1 + sa_applets_desc_2 +
"<P><TABLE><TR><TD WIDTH=10></TD><TD VALIGN=TOP>" +
"<SELECT SIZE=14 NAME=certs>";
for ( var i = 0; i < sa_principals.length; i++ ) {
ret_string += ("<OPTION>" + sa_principals[i]);
}
ret_string += "</SELECT></TD><TD VALIGN=TOP>";
ret_string += sa_make_buttons(sa_view_cert_button_label,
sa_remove_button_label,
sa_edit_privs_button_label);
ret_string += "</TD></TR></TABLE>";
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_certs_intro_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_certs_intro_index_label, null);
ret_string += sa_open_form('applets_form');
ret_string += sa_certs_intro_string_1;
ret_string += sa_certs_intro_string_2;
ret_string += sa_certs_intro_string_3;
ret_string += sa_certs_intro_string_4;
ret_string += sa_certs_intro_string_5;
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_your_certs_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_yours_index_label, null);
ret_string += sa_open_form('your_certs_form')
+ sa_your_certs_desc_1
+ sa_your_certs_desc_2
+ "<TABLE><TR><TD WIDTH=10></TD><TD VALIGN=TOP>"
+ "<SELECT SIZE=10 NAME=certs>";
for ( var i = 0; i < sa_your_certs.length; i++ ) {
ret_string += ("<OPTION>" + sa_your_certs[i]);
}
ret_string += "</SELECT></TD><TD VALIGN=TOP>";
ret_string += sa_make_buttons(sa_view_button_label, sa_verify_button_label,
sa_delete_button_label,
sa_export_button_label);
ret_string += "</TD></TR></TABLE>";
ret_string += sa_your_certs_desc_tail_1 + sa_your_certs_desc_tail_2 + '<P>';
ret_string += (' <INPUT TYPE=SUBMIT NAME=button VALUE="' +
sa_get_cert_button_label + '">');
ret_string += (' <INPUT TYPE=SUBMIT NAME=button VALUE="' +
sa_import_button_label + '">');
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_people_certs_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_people_index_label, null);
ret_string += sa_open_form('people_certs_form');
ret_string += sa_people_certs_desc_1 + sa_people_certs_desc_2;
ret_string += "<TABLE><TR><TD WIDTH=10></TD><TD VALIGN=TOP>" +
"<SELECT SIZE=12 NAME=certs>";
for ( var i = 0; i < sa_people_certs.length; i++ ) {
ret_string += ("<OPTION>" + sa_people_certs[i]);
}
ret_string += "</SELECT></TD><TD VALIGN=TOP>";
ret_string += sa_make_buttons(sa_view_button_label,
sa_verify_button_label,
sa_delete_button_label);
ret_string += "</TD></TR></TABLE>";
ret_string += sa_get_certs_desc;
ret_string += sa_make_buttons(sa_search_dir_button_label);
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_site_certs_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_sites_index_label, null);
ret_string += sa_open_form('site_certs_form') + sa_site_certs_desc +
"<P><TABLE><TR><TD WIDTH=10></TD><TD VALIGN=TOP>" +
"<SELECT SIZE=14 NAME=certs>";
for ( var i = 0; i < sa_site_certs.length; i++ ) {
ret_string += ("<OPTION>" + sa_site_certs[i]);
}
ret_string += "</SELECT></TD><TD VALIGN=TOP>";
ret_string += sa_make_buttons(sa_edit_button_label, sa_verify_button_label,
sa_delete_button_label);
ret_string += "</TD></TR></TABLE>";
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_signers_certs_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_signers_index_label, null);
ret_string += sa_open_form('signers_certs_form') + sa_signers_certs_desc +
"<P><TABLE><TR><TD WIDTH=10></TD><TD VALIGN=TOP>" +
"<SELECT SIZE=14 NAME=certs>";
for ( var i = 0; i < sa_signers_certs.length; i++ ) {
ret_string += ("<OPTION>" + sa_signers_certs[i]);
}
ret_string += "</SELECT></TD><TD VALIGN=TOP>";
ret_string += sa_make_buttons(sa_edit_button_label, sa_verify_button_label,
sa_delete_button_label);
ret_string += "</TD></TR></TABLE>";
if (sa_crls_present) {
ret_string += sa_signers_view_crl_desc;
ret_string += sa_make_buttons(sa_view_crl_button_label);
}
sa_close_form();
return(ret_string);
}
function sa_make_modules_page()
{
var ret_string = '';
ret_string += sa_make_page_intro(sa_modules_index_label, null);
ret_string += sa_open_form('cr_modules_form');
ret_string += sa_modules_desc;
ret_string += "<P><TABLE><TR><TD WIDTH=10></TD><TD VALIGN=TOP>" +
"<SELECT SIZE=14 NAME=sa_cr_modules>";
for ( var i = 0; i < sa_cr_modules.length; i++ ) {
ret_string += ("<OPTION>" + sa_cr_modules[i]);
}
ret_string += "</SELECT></TD><TD VALIGN=TOP>";
ret_string += sa_make_buttons(sa_view_edit_button_label, sa_add_button_label,
sa_delete_button_label,
sa_logout_all_button_label);
ret_string += "</TD></TR></TABLE>";
ret_string += sa_close_form();
return(ret_string);
}
function sa_make_index_page(selected)
{
var n_strings = ( sa_make_index_page.arguments.length - 1 ) / 3;
var table_background;
var command;
var indent;
var label;
var ret_string = "";
ret_string += '<TABLE CELLSPACING=4>';
for ( var i = 0; i < n_strings; i++ ) {
indent = sa_make_index_page.arguments[(i*3) + 1];
label = sa_make_index_page.arguments[(i*3) + 2];
page = sa_make_index_page.arguments[(i*3) + 3];
if ( page == selected ) {
table_background = 'BGCOLOR=#BBCCBB';
} else {
table_background = '';
}
if ( indent == 0 ) {
ret_string += ('<TR><TD COLSPAN=2 ' + table_background + '>');
} else {
ret_string += ('<TR><TD> </TD><TD ' + table_background + '>');
}
command = "'parent.sa_switch_pane(parent,\\\'" + selected + "\\\',\\\'" + page + "\\\')'";
ret_string += ('<A HREF="javascript:void setTimeout(' + command + ',0)">');
if ( indent == 0 ) { ret_string += "<B>"; }
ret_string += label;
if ( indent == 0 ) { ret_string += "</B>"; }
ret_string += '</A></TD></TR>';
}
ret_string += '</TABLE>';
return(ret_string);
}
function sa_make_selected_page(selected)
{
if ( selected == "secinfo" ) { return sa_make_secinfo_page(); }
else if ( selected == "passwords" ) { return sa_make_passwords_page(); }
else if ( selected == "navigator" ) { return sa_make_navigator_page(); }
else if ( selected == "messenger" ) { return sa_make_messenger_page(); }
else if ( selected == "applets" ) { return sa_make_applets_page(); }
else if ( selected == "certs" ) { return sa_make_certs_intro_page(); }
else if ( selected == "yours" ) { return sa_make_your_certs_page(); }
else if ( selected == "people" ) { return sa_make_people_certs_page(); }
else if ( selected == "sites" ) { return sa_make_site_certs_page(); }
else if ( selected == "signers" ) { return sa_make_signers_certs_page(); }
else if ( selected == "modules" ) { return sa_make_modules_page(); }
else {
return sa_open_form('unimplemented_form') +
'<HTML><BODY><B>Unimplemented: page ' + selected + sa_close_form(); }
}
function sa_title_string(selected)
{
if ( selected == "secinfo" ) { return sa_secinfo_title_label; }
else if ( selected == "passwords" ) { return sa_passwords_title_label; }
else if ( selected == "navigator" ) { return sa_navigator_title_label; }
else if ( selected == "messenger" ) { return sa_messenger_title_label; }
else if ( selected == "applets" ) { return sa_applets_title_label; }
else if ( selected == "certs" ) { return sa_certs_intro_title_label; }
else if ( selected == "yours" ) { return sa_yours_title_label; }
else if ( selected == "people" ) { return sa_people_title_label; }
else if ( selected == "sites" ) { return sa_sites_title_label; }
else if ( selected == "signers" ) { return sa_signers_title_label; }
else if ( selected == "modules" ) { return sa_modules_title_label; }
else {
return 'Page ' + selected;
}
}
var fool0;
var fool1;
var fool2;
var fool3;
var fool4;
function sa_help_topic(selected)
{
var ret;
if ( selected == "secinfo" ) {
ret = "nethelp:netscape/collabra:sec_info_intro";
} else if ( selected == "passwords" ) {
ret = "nethelp:netscape/collabra:password_introduction";
} else if ( selected == "navigator" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_PREFS_NAVIGATOR";
} else if ( selected == "messenger" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_PREFS_MESSENGER";
} else if ( selected == "applets" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_PREFS_APPLET";
} else if ( selected == "certs" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_CERTS";
} else if ( selected == "yours" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_CERTS_YOURS";
} else if ( selected == "people" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_CERTS_PEOPLE";
} else if ( selected == "sites" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_CERTS_SITES";
} else if ( selected == "signers" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_CERTS_ISSUERS";
} else if ( selected == "modules" ) {
ret = "nethelp:netscape/collabra:HELP_SEC_CERTS_CRYPTOMODS";
} else {
ret = "";
}
return(ret);
}
function sa_make_dialog(win, selected)
{
var index_string;
captureEvents(Event.MOUSEDOWN);
sa_curpage = selected;
with (win.frames.buttons) {
fool4 = sa_make_page_intro("", "#BBCCBB") +
sa_open_form('buttons_form') +
'<CENTER>' +
'<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR>' +
'<TD ALIGN=CENTER VALIGN=MIDDLE>' +
' <INPUT TYPE=SUBMIT NAME=button VALUE="' + sa_ok_button_label +
'" onClick="parent.sa_ready_submit(parent, \047' + selected + '\047)">' +
'</TD><TD WIDTH=10></TD><TD ALIGN=CENTER VALIGN=MIDDLE>' +
' <INPUT TYPE=SUBMIT NAME=button VALUE="' + sa_cancel_button_label +
'">' +
'</TD><TD WIDTH=10></TD><TD ALIGN=CENTER VALIGN=MIDDLE>' +
' <INPUT TYPE=BUTTON NAME=button onclick="document.location.replace(\'' + sa_help_topic(selected) + '\')" VALUE="' + sa_help_button_label + '">' +
'</TD></TR></TABLE>' +
'</CENTER>' +
sa_close_form() +
'</BODY></HTML>';
document.write(fool4);
document.close();
}
with (win.frames.extra) {
fool3 = sa_make_page_intro("", "#C0C0C0") + '</BODY></HTML>';
document.write(fool3);
document.close();
}
with (win.frames.title) {
fool0 = sa_make_page_intro("", "#BBCCBB") +
'<TABLE WIDTH="100%"><TR><TD>' +
'<B><FONT SIZE="+2">' + sa_title_string(selected) +
'<B></FONT>' +
'</TD></TR></TABLE>' +
'</BODY></HTML>';
document.write(fool0);
document.close();
}
with (win.frames.index) {
if ( sa_i_am_ratbert ) {
index_string = sa_make_index_page(selected,
0, sa_secinfo_index_label, "secinfo",
0, sa_passwords_index_label, "passwords",
0, sa_navigator_index_label, "navigator",
0, sa_applets_index_label, "applets",
0, sa_certs_intro_index_label, "certs",
1, sa_yours_index_label, "yours",
1, sa_sites_index_label, "sites",
1, sa_signers_index_label, "signers",
0, sa_modules_index_label, "modules"
);
} else {
index_string = sa_make_index_page(selected,
0, sa_secinfo_index_label, "secinfo",
0, sa_passwords_index_label, "passwords",
0, sa_navigator_index_label, "navigator",
0, sa_messenger_index_label, "messenger",
0, sa_applets_index_label, "applets",
0, sa_certs_intro_index_label, "certs",
1, sa_yours_index_label, "yours",
1, sa_people_index_label, "people",
1, sa_sites_index_label, "sites",
1, sa_signers_index_label, "signers",
0, sa_modules_index_label, "modules"
);
}
fool1 = sa_make_page_intro(sa_secinfo_index_label, "#FFFFFF") +
index_string + '</BODY></HTML>';
document.write(fool1);
document.close();
}
with(win.frames.content) {
fool2 = sa_make_selected_page(selected) + '</BODY></HTML>';
document.write(fool2);
document.close();
}
return false;
}
function sa_init_windows()
{
return window.open("", "", "width=600,height=450,menubar=no");
}
function onMouseDown(e)
{
if ( e.which == 3 ) {
return false;
}
return true;
}
</SCRIPT>
</HEAD>
<FRAMESET ROWS="40,*,60" BORDER=0>
<FRAME SRC="about:blank" NAME="title"
MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO NORESIZE BORDER=NO>
<FRAMESET COLS="20%,69%,1%" BORDER=0
ONLOAD="sa_make_dialog(window, sa_curpage)">
<FRAME SRC="about:blank" NAME="index"
MARGINWIDTH=0 MARGINHEIGHT=0 NORESIZE BORDER=NO>
<FRAME SRC="about:blank" NAME="content"
MARGINWIDTH=15 MARGINHEIGHT=10 NORESIZE BORDER=NO>
<FRAME SRC="about:blank" NAME="extra"
MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO NORESIZE BORDER=NO>
</FRAMESET>
<FRAME SRC="about:blank" NAME="buttons"
MARGINWIDTH=0 MARGINHEIGHT=10 SCROLLING=NO NORESIZE BORDER=NO>
<NOFRAMES>
<B>Security Advisor:</B> if you can read this, you're too close.
</NOFRAMES>
</FRAMESET>
</HTML>